﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>字符串表达式</title>
</head>
<body>
    <script language="javascript">
        let x = 10;
        document.write("<p>目前变量x的值为：x=" + x);
        x = 4 + 5 + 6;
        document.write("<p>执行语句“x=4+5+6”后，变量x的值为：x=" + x);
        document.write("<p>此时，变量x的数据类型为：" + (typeof x));
        x = 4 + 5 + '6';
        document.write("<p>执行语句“x=4+5+'6'”后，变量x的值为：x=" + x);
        document.write("<p>此时，变量x的数据类型为：" + (typeof x));
        
    </script>
</body>
</html>